package com.example.once.common;

import com.example.once.entity.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.*;

@Data
@ApiModel(description = "分页查询实体")
public class PageQuery extends User{

    private static int PAGE_SIZE = 20;
    private static int PAGE_NUM = 1;

    @ApiModelProperty("页码")
    private Integer pageNum = PAGE_NUM;

    @ApiModelProperty("页数")
    private Integer pageSize = PAGE_SIZE;

    @ApiModelProperty("排序字段集合")
    private HashMap param = new HashMap<>();

    @ApiModelProperty("是否升序")
    private Boolean isAsc;
}
